package com.matrix.gui;
import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;

/**
 * HeatMap
 * Android activity  to show the heat map of a matrix
 * @author McGarvie
 *
 */
public class HeatMap extends Activity {

    /**
     * creates the activity
     */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        DisplayMetrics metrics = new DisplayMetrics(); 
		getWindowManager().getDefaultDisplay().getMetrics(metrics);
		int width = metrics.widthPixels;
		int height = metrics.heightPixels;
		Globals global =(Globals) this.getApplicationContext();
		//sets the view to the MapDrawableView and passes in the the matrix and the width of the screen
        setContentView(new MapDrawableView(this,global.getResultMatrix().get(0), width, height));
        
    }
}